﻿using SuperX.SuperSocket.Server;
using System;
using System.Net;

namespace SuperX.SuperSocket.Socket.Client
{
    public class SocketClientConfig
    {
        public Role Role { get; set; } = Role.Client;  //角色

        public string Ip { get; set; } = "127.0.0.1";  //本机ip地址

        public int Port { get; set; } = 9100;   //端口号

        public int ReceiveBufferSize { get; set; } = 65535;

        public bool IsReConnect { get; set; } = true;   //是否要自动重连

        public bool IsLongConnection { get; set; } = true;  //是否是长连接

        public int MHeartBeatInterval { get; set; } = 1000 * 10; //心跳间隔

        /// <summary>
        /// 是否允许自动发送心跳
        /// </summary>
        public bool IsEnableCheckHeartbeat { get; set; } = true;
    }

}
